#ifndef __SOC_I2C_H__
#define __SOC_I2C_H__


#include "cms8s6990.h"
#include "../soc_comm.h"


void SOC_I2CInit(SOC_I2CNo_t no);
void SOC_I2C_ConfigMode(SOC_I2CNo_t no, SOC_I2CMode_t mode);

void SOC_I2CDevInit(SOC_I2CDev_t *i2c, SOC_I2CNo_t no, uint8_t wAddr, uint8_t rAddr, uint8_t regByte);
void SOC_I2CWriteByte(SOC_I2CDev_t *i2c, uint16_t regAddr, uint8_t b);
uint8_t SOC_I2CReadByte(SOC_I2CDev_t *i2c, uint16_t regAddr);
void SOC_I2CReadBuffer(SOC_I2CDev_t *i2c, uint16_t regAddr, uint8_t b);

#endif 
